package com.asen.commons.annotation;

import com.asen.commons.core.base.enums.ActionTypeEnum;
import com.asen.commons.core.base.domain.Core;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * Action服务注解
 *
 * @author Gary
 * @version 1.0
 * @date 2019-12-06
 */
@Documented
@Target(TYPE)
@Retention(RUNTIME)
public @interface ServiceAction {

    /**
     * Action服务类
     *
     * @return
     */
    Class<? extends Core> value();

    /**
     * 方法
     *
     * @return
     */
    ActionTypeEnum[] actions() default ActionTypeEnum.ALL;
}
